package com.ht.medicaltreatment.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.ht.medicaltreatment.R
import com.ht.medicaltreatment.bean.PagePD

class InventoryRecordAdapter:BaseQuickAdapter<PagePD,BaseViewHolder>(R.layout.item_record_layout) {
    override fun convert(holder: BaseViewHolder, item: PagePD) {
        holder.setText(R.id.tvName,item.name)
        holder.setText(R.id.tvUser,"创建者：${item.username?:"--"}")
        holder.setText(R.id.tvTime,"创建时间：${item.createTime}")
    }
}
